package com.zjcode.cdcer.service;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.basic.JsonObj;
import com.zjcode.cdcer.service.fallback.FollowUpListOfficeServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author ZQM
 * @date 2023/10/11 16:06
 */
@FeignClient(value = "zjcode-chronic-disease-cancer-server", fallback = FollowUpListOfficeServiceFallBack.class)
public interface FollowUpListOfficeService {

    @PostMapping("/cdcerserver/v1/followupListOffice/add")
    JsonObj add(@RequestBody PageData pageData);

    @PostMapping("/cdcerserver/v1/followupListOffice/selList")
    JsonObj selList(@RequestBody PageData pageData);

    @GetMapping("/cdcerserver/v1/followupListOffice/selById")
    JsonObj selById(@RequestParam String id);

    @PostMapping("/cdcerserver/v1/followupListOffice/followUpListOfficeReturn")
    JsonObj followUpListOfficeReturn(@RequestBody PageData pageData);

    @PostMapping("/cdcerserver/v1/followupListOffice/queryAllExportData")
    JsonObj queryAllExportData(@RequestBody PageData pageData);
}
